<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>Manager Index</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		
		<link type="text/css" rel="stylesheet" href="<%=basePath%>css/manager/operations.css"/>
		<link type="text/css" rel="stylesheet" href="<%=basePath%>css/manager/dynMenu.css"/>
		<script type="text/javascript" src="<%=basePath%>js/manager/DOMHelp.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/manager/dynBgClick.js"></script>
		<!-- <script type="text/javascript" src="<%=basePath%>js/manager/dynMenu.js"></script>-->
		<script type="text/javascript" src="<%=basePath%>js/manager/iepng.js"></script>
		
		<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.js"></script>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/user/layer.css"/>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/user/private.css"/>
		
		<script type="text/javascript" src="<%=basePath%>js/user/private/tipswindown.js"></script>
  		<script type="text/javascript" src="<%=basePath%>js/user/private/layer.js"></script>
		
		<script>
			
			$(document).ready(function(){
				/*
				 * for perpare for the pop layer.
				 */
				$("#pop_DC_form").click(popDCForm);
				$("#pop_msg_trig").click(popDCMsg);
			
				/*
				 * 绑定 form button 的单击事件 
				 */
				$("#courseUpdate").click( function(){
					//alert( "heeh" );
					$("#pop_DC_form").click();
				});
			 
				$("#handin_onlyScd").click(function(){
					//confirmTerm();
					/* $.ajax({
						type:"post",
						url:"http://localhost:8080/sm3/manage!deploycos",
						data:str,
						dataType:"text",
						//contentType:"text/html, charset=UTF-8",
						success:function( data ){
							//若出错
							var idx = data.search(/&/);	//正确 idx != -1
							if( idx != -1 ){
								data = data.substr( 0, data.search( /&/) );
							}
							//将信息添加进去
							$("#pop_msg_ct").html( "　　" + data );
							//弹出提示
							$( "#pop_msg_trig" ).click();
							setTimeout( confirmTerm, 1600 );
						},
						async:false
					}); */
				});
			});
			
			function popDCForm(){ //-->cs CourseSchedule
				showTipsWindown("课程管理", 'form_deploycourse', 360, 160 );
			}
			function popDCMsg(){ //-->cs deploycourse
				showTipsWindown("错误提示", 'popMsgtxt', 200, 20 );
			}
		</script>
		<style type="text/css">
			#windown-title h2{
				top:6px;
			}
		  	.course_content{
		  		padding:10px 0 10px 36px;
		  	}
		  	.course_content h3{
		  		color:#666;
		  		font-weight:bold;
		  		font-size:15px;
		  		margin-bottom:5px;
		  	}
		  	.course{
		  		width:137px;
		  		height:24px;
		  		background:#fff;
		  		font-size:1.1em;
		  		color:#666;
		  		text-align:center;
		  	}
		  	.course_content option{
		  		text-align:left;
		  	}
		  	
		  	.course_content option.desc{
		  		text-align:center;
		  	}
		  	
		  	
		  	.course_content .course_sbmt{
		  		margin-left:10px;
		  		padding:2px 4px;
		  		border-style:outset;/*368052*/
		  	}
		  	
		  	.slct_number{
		  		width:63px;
		  		/*margin-left:10px;*/
		  	}
		  	
		  	.slct_isolate{
		  		width:203px;
		  	}
		 </style>
	</head>
  	
  	<body>
  		<!-- for the display none for pop layer -->
  		<div id="pop_layer" style="display:none">
	  		<a href="#" id="pop_DC_form">deploycourse</a>
	  		<a href="#" id="pop_msg_trig">popMsgTrig</a>
		</div>
		<div id="pop_msg_ct" style="display:none">
			<span id="popMsgtxt"></span>
		</div>
		
  		<div id="header">
			<div id="logo">
				<img src="<%=basePath%>images/manager/backLogo.gif"/>
				<span>后台管理</span>
			</div>
			
			<div id="user_status">
				<p>当前用户：<s:property value="user.proxyName"/>
					<a href="#">安全退出</a>
				</p>
			</div>
			<div class="clear"></div>
		</div>
		
		<div id="navigation">
			<ul >
				<li><a href="javascript:">课程管理</a></li>
				<li><a href="javascript:">新闻管理</a></li>
			</ul>
		</div>
		<div class="clear"></div>
		<script type="text/javascript" language="javascript">
			var na = new CB( 'navigation', 2 );
			na.bindLi();
		</script>
		<div class="clear"></div>
		<div id="content">
			<div id="sidebar_navigation">
			<%-- <publish:category category="${category}" onClick="" id="left_nav"/> --%>
			
			<ul id="left_nav">
				<li><a href="javascript:">课程管理</a></li>
			</ul>
			<script type="text/javascript" language="javascript">
				var leftNav =new CB( 'left_nav' );
				leftNav.bindLi();
			</script>
		</div>
		
		
		<div id="form_deploycourse" style="display:none">
			<div class="form_content course_content">
				<h3>进度调节</h3>
				<form id="deploy_schedule">
					<%--<input type="hidden" value="">--%>
					<input type="hidden" value="1" name="type"/>
					<select id="onlySchedule" name="schedule" class="radius course slct_isolate">
						<option class="desc">---请选择进度---</option>
						<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
					</select>
					<button id="handin_onlyScd" type="button" class="radius course_sbmt">确定调节</button>
				</form>
				<br/><br/>
				
				<h3>分配课程</h3>
				<form id="deploy_course">
					<input type="hidden" value="2" name="type"/>
					<select id="cs_course" name="course" class="radius course">
						<option value="null" class="desc">---请选择课程---</option>
						<option value="CoreJava">CoreJava</option>
						<option value="JDBC">JDBC</option>
						<option value="Oracle">Oracle</option>
						<option value="HTML/CSS/XML">HTML/CSS/XML</option>
						<option value="JavaScript">JavaScript</option>
						<option value="JSP/Servlet">JSP/Servlet</option>
						<option value="Struts">Struts</option>
						<option value="Hibernate">Hibernate</option>
						<option value="Spring">Spring</option>
						<option value="Android">Android</option>
					</select>
					<select id="cs_schedule" name="schedule" class="radius course slct_number">
						<option value="0" class="desc">进度</option>
						<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
					</select>
					<button id="handin_cs" type="button" class="radius course_sbmt">确定分配</button>
				</form>
			</div>
		</div>
		<div id="main_content">
			<%--<div id="quick_navigation">
				<a href="javascript:" id="addNews"><img src="<s:url value='/images/category/add.png'/>"/><span>添加栏目</span></a>
				<a href="javascript:" id="addItem"><img src="<s:url value='/images/category/add.png'/>"/><span>添加新闻</span></a>
				<a href="javascript:" id="updateItem"><img src="<s:url value='/images/category/edit.png'/>"/><span>修改栏目</span></a>
				<a href="javascript:" id="deleteItem"><img src="<s:url value='/images/category/dele.png'/>"/><span>删除栏目</span></a>
			</div>--%>
			
			<div id="data_list">
		 		<%-- <table cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
					<tr>
						<th>No.</th>
						<th>标题</th>
						<th>发布人</th>
						<th>创建日期</th>
						<th>发布时间</th>
						<th colspan="2" align="center">操作</th>
					</tr>
					<s:iterator value="#request.newsList">
						<tr>
							<td><s:property value="id"/></td>
							<td><s:property value="title"/></td>
							<td><s:property value="editor.name"/></td>
							<td><s:property value="editTime"/></td>
							<td><s:property value="publishTime"/></td>
							<td>
								<s:url id="newsUpdate" action="newsUpdate">
									<s:param name="news.id" value="%{id}"/>
								</s:url>
								<a href="javascript:dynAreaForNewsAjax( '<s:property value='%{newsUpdate}'/>', 'data_form', 'newsDes', 'data_list' )" title="修改"><img src="<s:url value='/images/back/modify.png'/>" alt=""/></a>
							</td>
							<td><a href="#" onclick="newsDelete( '<s:property value='id'/>', event )" title="删除"><img src="<s:url value='/images/back/delete.png'/>" alt=""/></a></td>
						</tr>
					</s:iterator>
				</table>--%>
				<table cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
					<tr>
						<th colspan="3" align="left">课程管理</th>
					</tr>
					<tr>
						<td><button id="courseDefault" type="button">默认分配</button></td>
						<td><button id="courseUpdate" type="button">更新课程</button></td>
						<td><button id="coursePetition" type="button">管理补习申请</button></td>
						<!-- 对于最后一个得切换视图 -->
					</tr>
				</table>
				<%--<table>
					<tr>
						<th colspan="6" align="left">补课申请受理</th>
					</tr>
					
					<tr>
						<th>编号</th>
						<th>补习申请编号</th>
						<th>申请日期</th>
						<th>申请学员</th>
						<th>补修课程</th>
						<th>补修课时</th>
						<th>申请管理</th>
					</tr>
					<tr>
						<td>1</td>
						<td><s:property value="id"/></td>
						<td><s:property value="time"/></td>
						<td><s:property value="user"/></td>
						<td><s:property value="course"/></td>
						<td><s:property value="schedule"/></td>
						<td>
							
						</td>
					</tr>
				</table>--%>
			</div>
			
			<div id="data_form">
				
			</div>
		</div>
		
		<div id="footer">
			<p>Coyright2013-2014@ALL Rights Reserved. 赣ICP备12040966</p>
			<img src="<%=basePath%>images/manager/cnzz.gif"/>
		</div>
  	</body>
</html>
